package com.jsu.hotelmanagement.controller;

import com.jsu.hotelmanagement.pojo.vo.CommonResult;
import com.jsu.hotelmanagement.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Mo
 * @createTime 2022/11/21 20:06
 * @description
 */
@RestController
@RequestMapping("/test")
public class TestController {
    @Autowired
    TestService testService;

    @GetMapping("/test")
    public CommonResult test() {
        System.out.println("test接口调用");
        return testService.test();
    }
}
